<%-- 
    Document   : newjsp
    Created on : 2019-9-3, 8:39:16
    Author     : danny
--%>

<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%!
    int add(int a, int b) {
        return a + b;
    }
%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
        <%--<jsp:include page="login.jsp"/>--%>
        <%@include file="login.jsp" %>
        <%
            List l = new ArrayList();
            int a = 1;
            int b = 2;
            
        %>
        <h1><%= add(a,b)%></h1>
    </body>
</html>
